Component({
    /**
   * 组件的属性列表
   */
    properties: {
        buttonText: {
            type: String,
            observer(newVal) {
                this.setData({
                    txt: newVal
                });
            }
        },
        disabled: {
            type: Boolean,
            observer(newVal) {
                this.setData({
                    comDisabled: newVal
                });
            }
        },
        comColor: {
            type: String,
            observer(newVal) {
                this.setData({
                    mainColor: newVal
                });
            }
        }
    },
    /**
   * 组件的初始数据
   */
    data: {
        formIdArray: [],
        comDisabled: false
    },
    /**
   * 组件的方法列表
   */
    methods: {
        getFormId(e) {
            const {formId: formId} = e.detail;
            const formIdArray = this.data.formIdArray.concat(formId);
            this.setData({
                formIdArray: formIdArray
            });
            if (formId !== "the formId is a mock one") {
                // 执行相应的逻辑
            }
        },
        formIdAll() {
            const myDetail = {
                formIdArray: this.data.formIdArray
            };
            this.triggerEvent("getformid", myDetail, {});
        },
        dd() {}
    }
});